package global

import (
	"go.uber.org/zap"
	"gorm.io/gorm"
)

// 定义全局结构体
type GlobalStruct struct {
	DB     *gorm.DB
	Logger *zap.Logger
}

// 定义全局变量
var GlobalP *GlobalStruct

func InitGlobalP(db *gorm.DB, logger *zap.Logger) {
	GlobalP = &GlobalStruct{
		DB:     db,
		Logger: logger,
	}
}
